﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Projet_IMA.Unsafe;
using Projet_IMA.Base;

namespace Projet_IMA.Projections
{
    public class ProjectionOrthogonaleBottom : ProjectionOrthogonale
    {
        public override String Name
        {
            get { return "Bottom"; }
        }

        public override EProjection EProjection
        {
            get { return EProjection.OrthogonaleBottom; }
        }

        public override unsafe void GetProjection(UnsafePoint3D* Point, UnsafePoint2D* projectionPoint)
        {
            projectionPoint->x = ZeroX + (int)Point->x - dX;
            projectionPoint->y = ZeroY + (int)Point->y - dY;
            projectionPoint->profondeur = Point->z;
        }

        public override void setCameraDirection(V3 cameraDirection)
        {
            cameraDirection.x = 0;
            cameraDirection.y = 0;
            cameraDirection.z = -1;
        }
    }
}
